package common.statistics;


class OperatingSystemStatus
{
    long totalPhysicalMemorySize = -1;
    long freePhysicalMemorySize = -1;
    long maxFileDescriptorCount = -1;
    long openFileDescriptorCount = -1;

    public String toString()
    {
        return String.format("\ttotalPhysicalMemorySize:\t%,.2fG\n"
                        + "\tfreePhysicalMemorySize:\t%,.2fG\n"
                        + "\tmaxFileDescriptorCount:\t%s\n"
                        + "\topenFileDescriptorCount:\t%s\n",
                (float) totalPhysicalMemorySize / JvmInfo.gb, (float) freePhysicalMemorySize / JvmInfo.gb, maxFileDescriptorCount, openFileDescriptorCount);
    }
}
